package com.financing.platform.vo;

import com.financing.platform.common.CsvExportable;
import com.financing.platform.util.StringUtil;


/**
 * 内部理财师详情-报表VO
 *
 */
public class LicashiDetailVO extends BaseVO implements CsvExportable{
	
	 private String uLoginName;//理财师手机号
	 private String uName;//理财师名字
	 private String clientSource;//客户来源   （1邀请函 2系统分配）
	 private String sysAllocatedTime;//系统分配时间
	 private String regTime;//用户注册时间
	 private String isRegister;//是否注册  1是0否
	 private String addAuthDate;//提交认证时间
	 private String authPassDate;//认证通过时间
	 private String lastVistDate;//最后回访时间
	 
	public String getuLoginName() {
		return StringUtil.mobileHide4Number(uLoginName);
	}

	public void setuLoginName(String uLoginName) {
		this.uLoginName = uLoginName;
	}

	public String getuName() {
		return uName==null?"":uName;
	}

	public void setuName(String uName) {
		this.uName = uName;
	}

	public String getClientSource() {
		return clientSource==null?"":clientSource;
	}

	public void setClientSource(String clientSource) {
		this.clientSource = clientSource;
	}

	public String getSysAllocatedTime() {
		return sysAllocatedTime==null?"":sysAllocatedTime;
	}

	public void setSysAllocatedTime(String sysAllocatedTime) {
		this.sysAllocatedTime = sysAllocatedTime;
	}

	public String getRegTime() {
		return regTime==null?"":regTime;
	}

	public void setRegTime(String regTime) {
		this.regTime = regTime;
	}

	public String getIsRegister() {
		return isRegister==null?"":isRegister;
	}

	public void setIsRegister(String isRegister) {
		this.isRegister = isRegister;
	}
	
	public String getIsReg(){
		return "1".equals(isRegister)?"是":"否";
	}

	public String getAddAuthDate() {
		return addAuthDate==null?"":addAuthDate;
	}

	public void setAddAuthDate(String addAuthDate) {
		this.addAuthDate = addAuthDate;
	}

	public String getAuthPassDate() {
		return authPassDate==null?"":authPassDate;
	}

	public void setAuthPassDate(String authPassDate) {
		this.authPassDate = authPassDate;
	}

	public String getLastVistDate() {
		return lastVistDate==null?"":lastVistDate;
	}

	public void setLastVistDate(String lastVistDate) {
		this.lastVistDate = lastVistDate;
	}
	

	@Override
	public String csvTitle() {
		return "理财师姓名,客户手机号,客户来源,系统分配时间,注册时间,是否注册,最后回访时间,提交认证时间,通过认证时间";
	}

	@Override
	public String toCsvString() {
		StringBuilder builder = new StringBuilder();
		builder.append(getuName()).append(",")
		.append(getuLoginName()).append(",")
		.append(getClientSource()).append(",")
		.append(getSysAllocatedTime()).append(",")
		.append(getRegTime()).append(",")
		.append(getIsReg()).append(",")
		.append(getLastVistDate()).append(",")
		.append(getAddAuthDate()).append(",")
		.append(getAuthPassDate()).append(",");
		return builder.toString();
	}
}
